// 在 src/api/Question.js 文件中添加API函数
import http from '../../utils/request'

export async  function getQuestionsByBankIdAndType(bankId, type) {
  return await http.request({
    url: `/api/questions`,
    method: 'get',
    params: { bankId, type },
  })
}

export async function getQuestionsByBankId(bankID:number) {
  return await http.request({
    url: `teacher/getQuestionByBank?bankId=${bankID}`,
    method: 'get',
  })
}